ACCEPT Pg 19-1 ACCEPT is used in input layout procedures to accept a new or modified record or subrecord. ACCEPT may also be used to close a layout displayed with the DIALOG command. It performs the same action as if a user had pressed the Enter key. The current phase of execution is first completed. One more During phase is executed, and then an After phase, except in dialogs where there is no After phase. After the layout is accepted, the OK system variable is set to 1. If there is a close box on a window, and the user clicks on the close box, ACCEPT should be called in the procedure executed when the close box is clicked (see OPEN WINDOW). ACCEPT is commonly executed as a result of a menu item being chosen. ACCEPT is also commonly used in the script of a No Action button. It is also often used in the close box procedure for the OPEN WINDOW command. ACCEPT cannot be queued up. In other words, executing two ACCEPT commands in a row from within a single procedure would have the same effect as executing one. The following example is a one-line procedure called from a procedure associated with a layout menu item. It accepts the current data entry: ACCEPT See also:  After,  CANCEL,  DIALOG,  During, OPEN WINDOW